<?php
/**
 * Created by JetBrains PhpStorm.
 * User: CuongDD5
 * Date: 5/8/13
 * Time: 11:41 AM
 * To change this template use File | Settings | File Templates.
 */
include 'mySQLConnect.php';
$id = $_POST['id_cat'];

$qry1 = "Delete from category where id = '$id' ";

if (!mysql_query($qry1)) {
    echo "fail";
}

include 'mySQLClose.php';
?>